= stylesheet_link_tag("glowtabs")
%style
  \.glowingtabs ul{margin-left: 17%; /*Left offset of entire tab menu relative to page*/}
#logo= image_tag "header_elearning.png"
#menu.glowingtabs
  %ul 
    %li= link_to "<span>หน้าเเรก</span>", :controller=>"main"
    - if session[:user_id]
      %li= link_to "<span>บทเรียน</span>", :controller=>"main", :action=>:welcome
    %li= link_to "<span>กระดานข่าว</span>", :controller=>'discussion_board'
    %li= link_to "<span>ข่าว / กิจกรรม</span>", :controller=>"activity_present", :action=>:index
    %li= link_to "<span>บทความ</span>", :controller=>"article_present", :action=>:index
    - if admin?
      %li= link_to "<span>รายงาน</span>", :controller=>"report"
    %li= link_to "<span>คู่มือการใช้</span>", :controller=>"main", :action=>:manual
    %li= link_to "<span>ติดต่อเรา</span>", :controller=>"main", :action=>:contact
    %li= link_to "<span>ดาวน์โหลด</span>", :controller=>"main", :action=>:download
    - if current_user && !current_user.ban_chat && current_user.chat_session
      %li= link_to "<span>ห้องสนทนา</span>", :controller=>"chat"
